package bao;

public class Shop implements Cloneable{
    private String id;
    private String name;
    private String room;
    private String sales;
    private String add;
    private String dep;
    private String date;

    public Shop(String id, String name, String room, String sales, String add, String dep, String date) {
        this.id = id;
        this.name = name;
        this.room = room;
        this.sales = sales;
        this.add = add;
        this.dep = dep;
        this.date = date;
    }

    public Shop(String add, String dep, String date) {
        this.add = add;
        this.dep = dep;
        this.date = date;
    }

    public void  set(String id, String name, String room, String sales) {
        this.id = id;
        this.name = name;
        this.room = room;
        this.sales = sales;
    }

    public String talk() {
        return this.id + "\t" + this.name + "\t" + this.room + "\t" + this.sales + "\t" + this.add + "\t" + this.dep + "\t" + this.date + "\n";
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return (Shop)super.clone();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAdd() {
        return add;
    }

    public void setAdd(String add) {
        this.add = add;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public String getSales() {
        return sales;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public String getDep() {
        return dep;
    }

    public void setDep(String dep) {
        this.dep = dep;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
